﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;

namespace ScytaleDecrypt.Model
{
    public class ImageWrapper {
        public String FilePath { get; set; }

        public ImageWrapper() {
            
        }

        public String GetText() {
            System.Diagnostics.Process.Start(@"D:\Documents\My SourceCode\Projects\Scytale Decrypt\ScytaleDecrypt\ScytaleDecrypt\ext\tesseract.exe", FilePath +@" C:\test");
            String text = File.ReadAllText(@"C:\test.txt");
            File.Delete(@"C:\test.txt");
            return text; 
        }

}
}
